package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.JobNodeConf;
import cn.getech.data.development.entity.ProcTable;
import cn.getech.data.development.model.dto.TableInfoDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目数据表关系表 Mapper 接口
 * </p>
 *
 * @author zenith
 * @since 2019-07-08
 */
@Mapper
public interface ProcTableMapper extends BaseMapper<ProcTable> {

    List<TableInfoDto> listAllTable(@Param("procId") Long procId);

    List<TableInfoDto> listAllRealTable(@Param("procId") Long procId);

    List<String> selectRealTaskList(@Param("procId") Integer procId, @Param("type") Integer type);

    List<Map<String,String>> findOffTaskRelation(@Param("procId") Integer procId, @Param("tableId") Integer tableId);
}
